/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package logic;

import dao.BankDaoImpl;
import dto.BankDto;
import java.util.ArrayList;

/**
 *
 * @author HOATNM
 */
public class BankLogicImpl {
    private BankDaoImpl bankDao;

    public BankLogicImpl() {
        this.bankDao = new BankDaoImpl();
    }
    
    // get all bank from bankDao
    public ArrayList<BankDto> getListBank(){
         return bankDao.getListBank();
     }
    
    // delete a bank
    public boolean deleteBank(int bankId){
        return bankDao.deleteBank(bankId);
    }
    // update a bank
    public boolean updateBank(BankDto dto) {
        return bankDao.updateBank(dto);
    }
    // insert a bank
    public boolean insertBank(BankDto dto) {
        return bankDao.insertBank(dto);
    }
    
}
